package com.android.sq.zouqi;

public class Constants {
	public final static String MQTT_HOST = "192.168.1.100";
	public final static String SERVER_URL = "http://192.168.1.100/~matthew";		//公司wifi mac上需要加上~matthew，因为是放在Sites下面的
	//public final static String IP_STR = "http://192.168.1.101"; 	//住处wifi
	//public final static String IP_STR = "http://10.42.43.1";		//笔记本自建wifi
	//public final static String IP_STR = "http://192.168.1.102"
	/*
	 * Handler消息类型
	 */
	public final static int ANIMATION_TIME_UP = 0; 	
	public final static int FINISH_LOGIN = 1;
	public final static int IS_NET_ERROR = 2;
	public final static int CHECK_NUM_ERROR = 3;
	public final static int AUTO_REGIST_ERROR = 4;
	public final static int ANIMATION_FADE_IN = 5;
	public final static int ANIMATION_FADE_OUT = 6;
	
	/*
	 * 活动的4个状态
	 */
	public final static int EVENT_STATE_UNSTARTED = 1; //活动状态_未开始
	public final static int EVENT_STATE_ROLLING = 2; //活动状态_正在进行
	public final static int EVENT_STATE_CANCELLED = 3; //活动状态_已经取消
	public final static int EVENT_STATE_FINISHED = 4; //活动状态_已经结束
	
	/*
	 * 好友关系
	 */
	public final static int RELATION_BOTH_CONFIRM = 0; 		//双方都已确认
	public final static int RELATION_ISSUE_CONFIRM = 1; 	//发出方未确认
	public final static int RELATION_ACCEPT_CONFIRM = 2;	//接受方未确认
	
	/*
	 * SP_USER_INFO 为SharedPreferences的键名
	 * 用于SharedPreferences中键值对的键名
	 */
	public final static String 		  SP_USER_INFO = "USER_INFO";
	public final static String 			SP_USER_ID = "USER_ID";
	public final static String SP_USER_PHONENUMBER = "USER_PHONE_NUMBER";
	
	// User表
	public final static String PARAM_PHONE_NUMBER = "PHONE_NUMBER";
	public final static String PARAM_USER_ID = "USER_ID";
	
	// Event表
	public final static String PARAM_EVENT_ID = "EVENT_ID";
	public final static String PARAM_EVENT_STATE = "EVENT_STATE";
	public final static String PARAM_EVENT_START = "EVENT_START";
	public final static String PARAM_EVENT_DURATION = "EVENT_DURATION";
	public final static String PARAM_EVENT_BYNAME = "EVENT_BYNAME";
	public final static String PARAM_EVENT_LATITUDE = "EVENT_LATITUDE";
	public final static String PARAM_EVENT_LONGITUDE = "EVENT_LONGITUDE";
	public final static String PARAM_EVENT_ADDRESS = "EVENT_ADDRESS";
	public final static String PARAM_EVENT_OWNER_ID = "EVENT_OWNER_ID";
	
	// UserEvent表
	public final static String PARAM_USERS_COUNT = "USERS_COUNT";
	
	// Relation表
	public final static String PARAM_FRIEND_ID = "FRIEND_ID";
	public final static String PARAM_RELATION_ID = "RELATION_ID";
	public final static String PARAM_RELATION_STATE = "RELATION_STATE";
	public final static String PARAM_RELATION_REQUESTS_COUNT = "RELATION_REQUESTS_COUNT";
	
	// Location表
	public final static String PARAM_LOCATION_ID = "LOCATION_ID";
	public final static String PARAM_LOCATION_LATITUDE = "LOCATION_LATITUDE";
	public final static String PARAM_LOCATION_LONGITUDE = "LOCATION_LONGITUDE";
	public final static String PARAM_LOCATION_ADDRESS = "LOCATION_ADDRESS";
	public final static String PARAM_LOCATION_BYNAME = "LOCATION_BYNAME";
	
	public final static String PIN_GEOPOINT = "PIN_GEOPOINT";
	public final static String PIN_ADDRESS = "PIN_ADDRESS";
	
	/*
	 * BMapApp 的Handler消息
	 */
	// 通知栏相关的信号
	public static final int notify_show_history_signal 			= 0X0001;
	public static final int notify_new_event_signal 			= 0X0002;	// 当收到主题<zouqi/*id*>的消息<new_event:*id*>
	public static final int notify_event_change_signal 			= 0X0003;	// 当收到某一个活动的推送<zouqi/event_*id*>
	public static final int notify_my_current_location_signal 	= 0X0004;	// 把自己的位置通知给活动
	public static final int notify_participant_cur_location			= 0X0005;	// 在pScrEventMap界面时，如果收到好友当前位置的消息
	
		
	/*
	 * PushService消息的类型
	 */
	public static final int PUSH_MSG_TYPE_NEW_EVENT 		= 0X0001;						// 当用户有新活动被邀请时
	public static final int PUSH_MSG_TYPE_CUR_LOCATION 		= 0X0002;						// 
	
	
	public static final int ACTIVTIY_pScrEventMap 	= 0X01;
	public static final int ACTIVITY_pScrMain 		= 0X02;
	/*
	 
	Status-Code    =
            "100"  ; Section 10.1.1: Continue
          | "101"  ; Section 10.1.2: Switching Protocols
          | "200"  ; Section 10.2.1: OK
          | "201"  ; Section 10.2.2: Created
          | "202"  ; Section 10.2.3: Accepted
          | "203"  ; Section 10.2.4: Non-Authoritative Information
          | "204"  ; Section 10.2.5: No Content
          | "205"  ; Section 10.2.6: Reset Content
          | "206"  ; Section 10.2.7: Partial Content
          | "300"  ; Section 10.3.1: Multiple Choices
          | "301"  ; Section 10.3.2: Moved Permanently
          | "302"  ; Section 10.3.3: Found
          | "303"  ; Section 10.3.4: See Other
          | "304"  ; Section 10.3.5: Not Modified
          | "305"  ; Section 10.3.6: Use Proxy
          | "307"  ; Section 10.3.8: Temporary Redirect
          | "400"  ; Section 10.4.1: Bad Request
          | "401"  ; Section 10.4.2: Unauthorized
          | "402"  ; Section 10.4.3: Payment Required
          | "403"  ; Section 10.4.4: Forbidden
          | "404"  ; Section 10.4.5: Not Found
          | "405"  ; Section 10.4.6: Method Not Allowed
          | "406"  ; Section 10.4.7: Not Acceptable
	 */
}
